package service

import (
	"sbd_nydjz/models"
	"sbd_nydjz/reposit"
)

type TagViewService struct {
	Repo reposit.TagViewReposit
}

func (service TagViewService) InsterTagViewSrv(isTagView models.Tagview) (is bool, err error) {
	is, err = service.Repo.IsTagViewOne(isTagView.Djzh)
	if err != nil {
		return
	}
	is, err = service.Repo.InsertTagViewOne(isTagView)
	if err != nil {
		return
	}
	return
}
